<template>
	<view>
		<view class="formlist inputtext" v-if="jnpfKey == 'billRule'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled=true placeholder="系统自动生成">
				</view>
			</view>
		</view>
		
		<!-- 创建人员 -->
		<view class="formlist inputtext" v-if="jnpfKey == 'createUser'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled=true placeholder="系统自动生成">
				</view>
			</view>
		</view>
		
		<!-- 所属部门 -->
		<view class="formlist inputtext" v-if="jnpfKey == 'currDept'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled=true placeholder="系统自动生成">
				</view>
			</view>
		</view>
		
		<!-- 创建时间 -->
		<view class="formlist inputtext" v-if="jnpfKey == 'createTime'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled="true" placeholder="系统自动生成">
				</view>
			</view>
		</view>
		
		<!-- 修改人员 -->
		<view class="formlist inputtext" v-if="jnpfKey == 'modifyUser'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled="true" placeholder="系统自动生成">
				</view>
			</view>
		</view>
		
		<!-- 修改时间 -->
		<view class="formlist inputtext" v-if="jnpfKey == 'modifyTime'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled=true placeholder="系统自动生成">
				</view>
			</view>
		</view>
		
		<!-- 所属岗位 -->
		<view class="formlist inputtext" v-if="jnpfKey == 'currPosition'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled=true placeholder="系统自动生成">
				</view>
			</view>
		</view>
		
		<!-- 所属公司 -->
		<view class="formlist inputtext" v-if="jnpfKey == 'currOrganize'">
			<view class="formgroup border-bottom-E3E3E5">
				<view class="labletitle" v-if="showLabel">
					<label>{{label}}</label>
				</view>
				<view class="controlvalue">
					<input type="text" v-model="valueTitle" disabled=true placeholder="系统自动生成">
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props:{
			value:'',
			disabled:{
				type:Boolean,
				default(){
					return false
				}
			},
			jnpfKey:{
				type:String,
				default(){
					return ''
				}
			},
			maxlength:{
				type:Number,
				default(){
					return 50
				}
			},
			placeholder:{
				type:String,
				default(){
					return '请输入'
				}
			},
			showLabel:{
				type:Boolean,
				default(){
					return true
				}
			},
			required:{
				type:Boolean,
				default(){
					return false
				}
			},
			label:{
				type:String,
				default(){
					return '控件标题'
				}
			}
		},
		
		data() {
			return {
				valueTitle:''
			};
		},
		
		watch:{
			value(val){
				this.valueTitle = val
			}
		},
		created() {
			this.$emit('input','')
		},
		
	}
</script>

<style>

</style>
